#coding=utf-8
import requests
from fct_rest_platform.settings import login_api, open_time_api, appoint_lesson

#登陆接口
def login(request,uri):
    url = uri+login_api
    res = requests.post(url, json=request)
    return res.text

#打开授课时间
def reserveopen(request,uri):
    url = uri+open_time_api
    res = requests.post(url, json=request)
    return res.text

#学生预约课程
def holdtime(request,uri):
    url = uri+appoint_lesson
    res = requests.post(url, json=request)
    return res.text

